package com.qdu.mapper;

import com.qdu.entity.Userinfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface UserinfoMapper {

    int deleteByPrimaryKey(String uid);

    int insert(Userinfo record);

    int insertSelective(Userinfo record);

    Userinfo selectByPrimaryKey(String uid);

    Userinfo selectByuname(String uname);

    Userinfo selectByUphone(String uphone);

    Userinfo selectByUmail(String uphone);

    int updateByPrimaryKeySelective(Userinfo record);

    int updateByPrimaryKey(Userinfo record);

    List<Userinfo> getAll();

    List<Userinfo> getUserByPage(@Param("start") Integer start, @Param("rows") Integer rows);

    Long findTotals();
}